package com.kgc.onlineLife.mapper;

import com.kgc.onlineLife.bean.Review;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created On : 2022/4/16.
 * <p>
 * Author     : 张冲
 * <p>
 * Description: ReviewMapper
 */
@Repository
public interface ReviewMapper {

    List<Review> selectReview(Integer pid);

    /**
    * @author: HarryXzy
    * @date: 2022/4/21 11:33 上午
    * @return:
    * @description: 添加评论
    **/
    void insertReview(Review review);
/*
 * @author : wangzhongyu
 * @date   : 2022/4/21
 * @param  :
 * @return :
 * @description :
 */

    List<Review> selectReviewss();

    int deleteReview(@Param("id") Integer id);

    List<Review> selectReviews (@Param("pname")String pname);
}